﻿Public Enum ActivityExecutionResult As Byte
    ' Fields
    Canceled = 2
    Compensated = 3
    Faulted = 4
    None = 0
    Succeeded = 1
    Uninitialized = 5
End Enum

Public Enum ActivityExecutionStatus As Byte
    ' Fields
    Canceling = 2
    Closed = 3
    Compensating = 4
    Executing = 1
    Faulting = 5
    Initialized = 0
End Enum

Public NotInheritable Class ActivityExecutionContext
    
     
 
    Friend Sub CheckpointInstanceState()
    End Sub

    Public Sub CloseActivity()
    End Sub
     

    Friend Sub FaultActivity(ByVal e As Exception)
    End Sub
     

    Public Function GetService(ByVal serviceType As Type) As Object
    End Function
     

    Friend Sub ReleaseLocks(ByVal transactional As Boolean)
    End Sub
     

    Friend Sub SuspendWorkflowInstance(ByVal suspendDescription As String)
    End Sub
     
    Friend Sub TerminateWorkflowInstance(ByVal e As Exception)
    End Sub

    Public Sub TrackData(ByVal userData As Object)
    End Sub

    Public Sub TrackData(ByVal userDataKey As String, ByVal userData As Object)
    End Sub

     
    Public ReadOnly Property ContextGuid() As Guid
        Get
        End Get
    End Property

    Friend ReadOnly Property ContextId() As Integer
        Get
        End Get
    End Property
     


    ' Fields
    Friend Shared ReadOnly CachedGrantedLocksProperty As DependencyProperty
    Public Shared ReadOnly CurrentExceptionProperty As DependencyProperty
    Friend Shared ReadOnly GrantedLocksProperty As DependencyProperty
    Friend Shared ReadOnly LockAcquiredCallbackProperty As DependencyProperty

    ' Nested Types
    Friend NotInheritable Class StartWorkflow

        ' Methods
        Friend Sub New(ByVal executionContext As ActivityExecutionContext)
        End Sub

            
    End Class
End Class